package com.site.springboot.core.repository;

import com.site.springboot.core.entity.News;
import com.site.springboot.core.entity.NewsIndex;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * Project:springboot-project-news-publish-system
 * ClassName:NewsIndexRepository
 * Package:com.site.springboot.core.repository
 * User:CWQ
 * Description:
 *
 * @Author 合肥-陈万琼
 * @Create 2024/5/29 0:01
 * @Version 1.0
 */
public interface NewsIndexRepository extends ElasticsearchRepository<NewsIndex,Long> {
    List<NewsIndex> findByNewsContentLike(String keyswords);
}
